package test;

public class ParameterFormatter {
    public static void formatAndOutput(String name, int age, String gender, String address) {
        // 按照格式输出
        System.out.println("姓名：" + name);
        System.out.println("年龄：" + age);
        System.out.println("性别：" + gender);
        System.out.println("住址：" + address);
    }
    public static void main(String[] args) {
        String name = "张三";
        int age = 25;
        String gender = "男";
        String address = "北京市海淀区";
        formatAndOutput(name, age, gender, address);
    }
}